package cn.com.zpark.listener;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionBindingEvent;

/**
 * @PackageName: cn.com.zpark.listener
 * @ClassName: ListenerDemo02
 * @Description:
 * @author: RZS
 * @date: 2021/11/22  15:27
 */
@WebListener
public class ListenerDemo02 implements HttpSessionAttributeListener {
    @Override
    public void attributeAdded(HttpSessionBindingEvent se) {
        System.out.println("session绑定数据");
    }

    @Override
    public void attributeRemoved(HttpSessionBindingEvent se) {
        System.out.println("session删除绑定数据");
    }

    @Override
    public void attributeReplaced(HttpSessionBindingEvent se) {
        System.out.println("session替换绑定数据");
    }
}
